#!/bin/bash
case ${1} in 
    rp|resetpwd)
		read -p '请输入要重置密码的用户名：' userName
        while [ ! -n "${userName}" ];do 
            read -p '请输入要重置密码的用户名：' userName
        done
        docker-compose exec web /bin/bash -c "/var/www/html/mars/resetpwd.sh ${userName}"
		;;
	*|-h|help)
        echo "用法:  jeekmanager 命令"
        echo "命令:"
        echo "rp|resetpwd 重置用户密码"
        ;;
esac